# -*- coding:utf-8 -*-

import sys
import codecs
src = sys.argv[1]
dst = sys.argv[2]
##source = codecs.open(src, 'r').read().decode('utf-8')
outfile = open(sys.argv[2], 'w')

for content in codecs.open(src, 'r'):
    print type(content), content, str(content.decode().encode('utf-8'))  #encode('utf-8')
    outfile.write(content.encode('utf-8'))
outfile.close()
#codecs.open(dst, "wb").write(source)
